package ee.serge.service;

import ee.serge.client.content.CalculatorContent;
import ee.serge.client.content.FullLoansContent;
import ee.serge.client.content.LoanDetailsContent;
import ee.serge.client.content.article.ChoosingALenderContent;
import ee.serge.client.content.article.ContactContent;
import ee.serge.client.content.article.KnowYourRightsContent;
import ee.serge.client.content.cp.LoansPanelContent;

public class MainModule implements Module {

   @Override
   public void handleContentChange(String pageName) {
      if (pageName.equals(CalculatorContent.getName())) {
         CalculatorContent.show();
      } else if (pageName.equals("")) {
         CalculatorContent.show();
      } else if (pageName.equals(FullLoansContent.getName())) {
         FullLoansContent.show();
      } else if (pageName.equals(LoanDetailsContent.getName())) {
         LoanDetailsContent.show();
      } else if (pageName.equals(LoansPanelContent.getName())) {
         LoansPanelContent.show();
      } else if (pageName.equals(ChoosingALenderContent.getName())) {
         ChoosingALenderContent.show();
      } else if (pageName.equals(KnowYourRightsContent.getName())) {
         KnowYourRightsContent.show();
      } else if (pageName.equals(ContactContent.getName())) {
         ContactContent.show();
      } 
   }

}
